package kr.saeildadim.androidexam_saeildamil;

import kr.saeildadim.androidexam_saeildamil.chapter11.Ch11_Main;
import kr.saeildadim.androidexam_saeildamil.chapter12.Ch12_main;
import kr.saeildadim.androidexam_saeildamil.chapter13.CH13_Main;
import kr.saeildadim.androidexam_saeildamil.chapter14.Ch14_Main;
import kr.saeildadim.androidexam_saeildamil.chapter16.Ch16_Main;
import kr.saeildadim.androidexam_saeildamil.chapter17.Ch17_Main;
import kr.saeildadim.androidexam_saeildamil.chapter4.Ch04_Main;
import kr.saeildadim.androidexam_saeildamil.chapter4.EditTest;
import kr.saeildadim.androidexam_saeildamil.chapter4.ImageviewTest;
import kr.saeildadim.androidexam_saeildamil.chapter5.Ch05_Main;
import kr.saeildadim.androidexam_saeildamil.chapter5.FrameEx;
import kr.saeildadim.androidexam_saeildamil.chapter5.GravityEx1;
import kr.saeildadim.androidexam_saeildamil.chapter5.PaddingExx;
import kr.saeildadim.androidexam_saeildamil.chapter5.Relateve;
import kr.saeildadim.androidexam_saeildamil.chapter5.TableRowEx;
import kr.saeildadim.androidexam_saeildamil.chapter6.Ch06_Main;
import kr.saeildadim.androidexam_saeildamil.chapter6.Codelayout;
import kr.saeildadim.androidexam_saeildamil.chapter6.Inflation5;
import kr.saeildadim.androidexam_saeildamil.chapter6.InflationEx;
import kr.saeildadim.androidexam_saeildamil.chapter6.LayoutParameterEx;
import kr.saeildadim.androidexam_saeildamil.chapter6.MultiPageEx;
import kr.saeildadim.androidexam_saeildamil.chapter6.SetparameterEx;
import kr.saeildadim.androidexam_saeildamil.chapter7.Ch07_Main;
import kr.saeildadim.androidexam_saeildamil.chapter7.CustomViewEx;
import kr.saeildadim.androidexam_saeildamil.chapter7.DrawBitmapEx;
import kr.saeildadim.androidexam_saeildamil.chapter7.ToastLayoutEx;
import kr.saeildadim.androidexam_saeildamil.chapter7.VibrateEx;
import kr.saeildadim.androidexam_saeildamil.chapter8.Ch08_Main;
import kr.saeildadim.androidexam_saeildamil.chapter9.Ch09Main;
import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;
import android.view.Menu;
import android.view.View;
import android.widget.RelativeLayout;
import android.widget.Toast;

public class MainActivity extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_main);
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.main, menu);
		return true;
	}
	
	public void mOnClick(View v){
		
		switch(v.getId()){
		
		case R.id.main_ch04btn:
			//Toast.makeText(this, "버튼2", Toast.LENGTH_LONG).show();
			startActivity(new Intent(this, Ch04_Main.class));
			break;
		case R.id.main_ch05btn:
			startActivity(new Intent(this, Ch05_Main.class));
			break;
		case R.id.main_ch06btn:
			startActivity(new Intent(this, Ch06_Main.class));
			break;
		case R.id.main_ch07btn:
			startActivity(new Intent(this, Ch07_Main.class));
			break;
		case R.id.main_ch08btn:
			startActivity(new Intent(this, Ch08_Main.class));
			break;
		case R.id.main_ch09btn:
			startActivity(new Intent(this, Ch09Main.class));
			break;
		case R.id.main_ch11btn:
			startActivity(new Intent(this, Ch11_Main.class));
			break;
		case R.id.main_ch12btn:
			startActivity(new Intent(this, Ch12_main.class));
			break;
		case R.id.main_ch13btn:
			startActivity(new Intent(this, CH13_Main.class));
			break;
		case R.id.main_ch14btn:
			startActivity(new Intent(this, Ch14_Main.class));
			break;
		case R.id.main_ch16btn:
			startActivity(new Intent(this, Ch16_Main.class));
			break;
		case R.id.main_ch17btn:
			startActivity(new Intent(this, Ch17_Main.class));
			break;
		}
		
	} 
}
